package com.hzqy.persistence.dao.cleaner;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.hzqy.persistence.dao.core.PersistenceDao;
import com.hzqy.web.vo.CmContentVo;
import com.hzqy.web.vo.PmsOrgVo;

@Repository
public class CleanerDao extends PersistenceDao<CmContentVo,Integer> {

	public List<Object> selectCleanerTime(CmContentVo cmContentVo) {
		return getSqlSession().selectList(this.getNamespace()+"selectCleanerTime",cmContentVo);
	}

	public int deleteCleanerPlan(CmContentVo cmContentVo) {
		return getSqlSession().update(this.getNamespace()+"deleteCleanerPlan",cmContentVo);
	}

	public int updateCleanerTime(CmContentVo cmContentVo) {
		return getSqlSession().update(this.getNamespace()+"updateCleanerTime",cmContentVo);
	}

	public PmsOrgVo selectPmsCleanerResidue(PmsOrgVo pmsOrgVo) {
		return getSqlSession().selectOne(this.getNamespace()+"selectPmsCleanerResidue",pmsOrgVo);
	}

	public int updateCleanerResidue(PmsOrgVo pmsOrgVo) {
		return getSqlSession().update(this.getNamespace()+"updateCleanerResidue",pmsOrgVo);
	}

	public int selectCleanerCount(CmContentVo contentVo) {
		Integer flag= getSqlSession().selectOne(this.getNamespace()+"selectCleanerCount",contentVo);
		if(flag==null){
			flag=0;
		}
		return flag;
	}

	public CmContentVo selectContentById(CmContentVo contentVo) {
		return getSqlSession().selectOne(this.getNamespace()+"selectContentById",contentVo);
	}

	

}
